package hx.inInterceptor;

import org.springframework.web.servlet.HandlerInterceptor;

public class MyinInterceptor implements HandlerInterceptor {
    /*@Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        DevUser DevUserLogin = (DevUser)request.getSession().getAttribute("DevUserLogin");
        DevUser BackendUser = (DevUser)request.getSession().getAttribute("BackendUser");
        if (DevUserLogin!=null){
            return true;
        } else if (BackendUser!=null){
            return true;
        }else {
            response.sendRedirect(request.getContextPath()+"/index.jsp");
            return false;
        }
    }*/
}
